import useDesignerStore from "@/store/Designer";
import { useMemo } from "react";

export const useCurrentNode = () => {
    const selectedNodes  = useDesignerStore(state => state.selectedNodes)
    return useMemo(() => {
        return selectedNodes?.[0]
    }, [selectedNodes])
}